package cn.bgs.mapper;

import cn.bgs.pojo.Cell;
import cn.bgs.pojo.CellIntermediate;
import cn.bgs.vo.UserVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 单元表 Mapper 接口
 * </p>
 *
 * @author cf
 * @since 2022-06-07
 */
@Mapper
public interface CellMapper extends BaseMapper<Cell> {

    void addPc(Integer communityId, Integer buildingId);

    void addsPc(String communityId, String buildingId, Integer portalId);

    List<CellIntermediate> findCellPc(@Param("communityId") String communityId, @Param("identity") String identity, @Param("middleState") Integer middleState);

    void delPc(Integer id);

    List<CellIntermediate> loadPc(Integer id);

    void addUserPc(UserVo forms);

    void addcell(Integer userId, String middleId);

    void updatePc(CellIntermediate forms);
}
